package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * Created by zhuhuaiqi on 2020/11/7.
 * 用户积分明细
 */
@Data
@Document("user_integral_detail")
public class UserIntegralDetail extends EntityBase {
    private String userId;
    /**
     * 积分数值
     */
    private Integer integral;
    /**
     * 业务类型:attendance:打卡,ca:下单,invite:邀请
     */
    private String bizType;
    /**
     * 业务ID
     */
    private String bizId;
    /**
     * 业务子ID
     */
    private String bizOId;
    /**
     * 积分描述
     */
    private String desc;
    /**
     * 消耗类型,add:累加,sub:减法
     */
    private String consumeType = "add";
}
